#ifndef _OD_SIP_TIMER_H_
#define _OD_SIP_TIMER_H_


#ifdef __cplusplus
    extern "C" {
#endif

#include "od_sip_comn.h"

#define SIP_SESSION_TIMER_TOO_SMALL  422


/**
 * Create a UPDATE request for session keep-alive.
 */
void od_sip_timer_create_update_req(od_sip_ctx *ctx, int did);

/**
 * Process Session Timers headers in incoming response, this function
 * will only process incoming response with status code 422 (Session
 * Interval Too Small) or 2xx (final response).
 */
int od_sip_timer_process_resp(od_sip_ctx *ctx, eXosip_event_t *event);


/**
* Process Session Timer header in incoming request UPDATE
*/
int od_sip_timer_process_req(od_sip_ctx *ctx, eXosip_event_t *event);


#ifdef __cplusplus
    }
#endif

#endif

/*_*/

